import request from '@/utils/request'

// 查询客户文件夹列表
export function listCustomFolder(query) {
  return request({
    url: '/basic/customFolder/list',
    method: 'get',
    params: query
  })
}

// 查询客户文件夹详细
export function getCustomFolder(id) {
  return request({
    url: '/basic/customFolder/' + id,
    method: 'get'
  })
}

// 新增客户文件夹
export function addCustomFolder(data) {
  return request({
    url: '/basic/customFolder',
    method: 'post',
    data: data
  })
}

// 修改客户文件夹
export function updateCustomFolder(data) {
  return request({
    url: '/basic/customFolder',
    method: 'put',
    data: data
  })
}

// 删除客户文件夹
export function delCustomFolder(id) {
  return request({
    url: '/basic/customFolder/' + id,
    method: 'delete'
  })
}
